package com.rongke.mapper;

import com.rongke.model.Admin;
import com.baomidou.mybatisplus.mapper.BaseMapper;

import java.util.List;
import java.util.Map;

/**
 * @AdminMapper
 * @管理员Mapper
 * @version : Ver 1.0
 */
public interface AdminMapper extends BaseMapper<Admin>{
    List<Admin> selectAdmin(Map  map);
    Integer selectAdminCount(Map map);
    /***
     * 管理员
     * */
    Admin selectByUserName(String userName);

    /***
     * 获取当前登录用户
     * */
    Admin selectByToken(String token);
}
